import request from '@/utils/request'

// 查询学校列表
export function listPost_school(query) {
  return request({
    url: '/school/system/school/list',
    method: 'get',
    params: query
  })
}

// 查询学校管理员列表
export function getAdmin_school(postId,params) {
  return request({
    url: '/school/system/school/managerList/' + postId,
    method: 'get',
    params: params
  })
}
// 查询学校详细
export function getPost_school(postId) {
  return request({
    url: '/school/system/school/' + postId,
    method: 'get'
  })
}

// 新增
export function addPost_school(data) {
  return request({
    url: '/school/system/school',
    method: 'post',
    data: data
  })
}

// 修改
export function updatePost_school(data) {
  return request({
    url: '/school/system/school',
    method: 'put',
    data: data
  })
}

// 删除
export function delPost_school(postId) {
  return request({
    url: '/school/system/school/' + postId,
    method: 'delete'
  })
}

// 删除
export function schoolAudit(data) {
  return request({
    url: '/school/manager/schoolAudit',
    method: 'post',
    data:data
  })
}
// 查询角色
export function listPost_role() {
  return request({
    url: '/system/role/allocatedRoles',
    method: 'get',
  })
}
